import 'package:flutter_module/data/ni_data_controller.dart';

import 'ni_data_controller.dart';

///处理数据相关的操作，增删改查
class DataManager {
  late final NIDataController _dataController;

  // 工厂模式
  factory DataManager() => _getInstance();

  static final DataManager _instance = DataManager._internal();

  static DataManager get instance => _getInstance();

  NIDataController get dataController => _dataController;

  DataManager._internal();

  static DataManager _getInstance() {
    return _instance;
  }

  ///初始化获取地图控制器
  setNIDataController(NIDataController dataController) {
    _dataController = dataController;
  }
}
